package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 shoppingCar
 *
 * @author ruoyi
 * @date 2022-02-04
 */
public class ShoppingCar extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Integer num;

    /**
     * 产品ID
     */
    @Excel(name = "产品ID")
    private Integer productID;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Integer userID;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private Integer createUser;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNum() {
        return num;
    }

    public void setProductID(Integer productID) {
        this.productID = productID;
    }

    public Integer getProductID() {
        return productID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("num", getNum())
                .append("productID", getProductID())
                .append("userID", getUserID())
                .append("createTime", getCreateTime())
                .append("createUser", getCreateUser())
                .toString();
    }
}
